<<<<<<< HEAD
<?php
$thing = ["冰箱", "电视", "手机","洗衣机", "空调","谢谢参与"];
$win=mt_rand(0,5);
echo "抽奖结果为：".$thing[$win];

echo "<br />";
//2）如果奖品："冰箱", "电视", "手机", "洗衣机", "空调"的中奖概率都为1%，谢谢参与为95%，请问如何实现？
$a=mt_rand(0,99);
if($a>=5){
    $a=5;
}
echo "降低概率后，抽奖结果为：".$thing[$a];
=======
<?php
$thing = ["冰箱", "电视", "手机","洗衣机", "空调","谢谢参与"];
$win=mt_rand(0,5);
echo "抽奖结果为：".$thing[$win];

echo "<br />";
//2）如果奖品："冰箱", "电视", "手机", "洗衣机", "空调"的中奖概率都为1%，谢谢参与为95%，请问如何实现？
$a=mt_rand(0,99);
if($a>=5){
    $a=5;
}
echo "降低概率后，抽奖结果为：".$thing[$a];
>>>>>>> 2013bb70c31c2d90b868684d14ed9a651f139527
